namespace 了解委托
{
    internal static class Program
    {
        /// <summary>
        ///  The main entry point for the application.
        /// </summary>
        [STAThread]
        public static void Main()
        {
            //applicationconfiguration.initialize();
            //application.run(new form2());
            Publisher publisher = new Publisher();

            Subscriber subscriber = new Subscriber();
            Subscriber1 subscriber1 = new Subscriber1();

            publisher.receiverEvent += subscriber.receiver;
            publisher.receiverEvent += subscriber1.receiver1;

            publisher.notifyAll();
            Console.ReadKey(true);
        }
    }
}